<template>
  <div class="app-container home">
    <el-row :gutter="20">
      <el-col :sm="24" :lg="12" style="padding-left: 20px">
        <h1>轻舟后台管理框架</h1>
        <h3 style="padding-left: 15px">v{{ version }}</h3>
        <p>
          在目前Java生态的后台管理框架中，<el-link class="link-size" type="primary" @click="goTarget(ruoyi)">若依<i class="el-icon-link el-icon--right"></i></el-link> 是非常优秀的。日常开发中一直在用。
          <br/>
          但是参与运维之后，发现基于 Spring Boot 开发的若依，打包体积过大，运行时内存占用很高。这怎么能适应云原生时代呢? 所以一直在找解决方案。
          <br/>
          终于发现了 <el-link class="link-size" type="primary" @click="goTarget(solon)">Solon<i class="el-icon-link el-icon--right"></i></el-link>。
          <br/>
          于是基于 Solon，仿照若依，开发了这一套后台管理框架，使得用过若依的开发者能够快速上手。
        </p>
        <p>
          取名 ‘轻舟’，寓意 ‘又轻又快’。
        </p>
        <el-button style="margin-top: 10px;" type="primary" size="small" icon="el-icon-cloudy" plain @click="goTarget(gitee)">访问码云</el-button>
      </el-col>
      <el-col :sm="24" :lg="12" style="padding-left: 50px">
        <el-row>
          <el-col :span="12">
            <h1>技术选型</h1>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="6">
            <h3>后端技术</h3>
            <ul>
              <li>Solon</li>
              <li>Solon Boot</li>
              <li>Redis</li>
              <li>Sa-Token</li>
              <li>Mybatis-Flex</li>
              <li>Hutool</li>
              <li>...</li>
            </ul>
          </el-col>
          <el-col :span="6">
            <h3>前端技术</h3>
            <ul>
              <li>Vue</li>
              <li>Vuex</li>
              <li>Vue-Router</li>
              <li>Element-UI</li>
              <li>Axios</li>
              <li>Js-Cookie</li>
              <li>...</li>
            </ul>
          </el-col>
        </el-row>
      </el-col>
    </el-row>

    <el-divider />

    <el-row :gutter="20">
      <el-col :xs="24" :sm="24" :md="12" :lg="8">
        <el-card>
          <div slot="header">
            <span>更新日志</span>
          </div>
          <div style="height: 260px; overflow: auto;">
            <el-collapse accordion>
              <el-collapse-item title="v1.1.0 — 2023/12/26">
                <ol>
                  <li>增加接口文档</li>
                </ol>
              </el-collapse-item>
              <el-collapse-item title="v1.0.3 — 2023/12/18">
                <ol>
                  <li>增加监控中心 Admin</li>
                </ol>
              </el-collapse-item>
              <el-collapse-item title="v1.0.2 — 2023/12/10">
                <ol>
                  <li>增加任务调度</li>
                </ol>
              </el-collapse-item>
              <el-collapse-item title="v1.0.1 — 2023/12/09">
                <ol>
                  <li>增加本地文件上传</li>
                </ol>
              </el-collapse-item>
              <el-collapse-item title="v1.0.0 — 2023/11/21">
                <ol>
                  <li>轻舟单体版正式发布</li>
                </ol>
              </el-collapse-item>
            </el-collapse>
          </div>
        </el-card>
      </el-col>
      <el-col :xs="24" :sm="24" :md="12" :lg="8">
        <el-card style="width: 240px;">
          <div slot="header">
            <span>捐赠支持</span>
          </div>
          <div style="height: 260px;">
            <img src="@/assets/images/pay.jpg" alt="donate" height="245px" />
            <span style="display: inline-block; height: 30px; line-height: 30px;">你可以请作者喝杯咖啡表示鼓励</span>
          </div>
        </el-card>
      </el-col>
    </el-row>

  </div>
</template>

<script>
export default {
  name: "Index",
  data() {
    return {
      // 版本号
      version: '1.1.0',
      gitee: 'https://gitee.com/lcm742320521/qingzhou-boot',
      ruoyi: 'https://www.ruoyi.vip',
      solon: 'https://solon.noear.org'
    };
  },
  methods: {
    goTarget(href) {
      window.open(href, "_blank");
    }
  }
};
</script>

<style scoped lang="scss">
.home {
  font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #676a6c;
  overflow-x: hidden;

  h1 {
    display: inline-block;
    margin-top: 0px;
    font-size: 26px;
    font-weight: 400;
  }

  h3 {
    display: inline-block;
    margin-top: 0px;
  }

  p {
    margin-top: 0px;
  }

  .link-size {
    font-size: 13px;
  }

  ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
  }

  ol {
    display: block;
    list-style-type: decimal;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0;
    margin-inline-end: 0;
    padding-inline-start: 40px;
  }
}
</style>
